package com.soso.gae.spider.model;

import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.caucho.hessian.callback.HessianCallback;
import com.soso.crawl.hessian.view.CrawlDataForm;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class CrawlInfoCacheTable {
	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	
	@Persistent(serialized = "true")
	private HessianCallback callback;//一定得在当前事物中才能读取序列化的值
	@Persistent(serialized = "true")
	private CrawlDataForm crawlDataForm;
	@Persistent
	private String readInfoDigest;
	@Persistent
	private Date createDate;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public HessianCallback getCallback() {
		return callback;
	}
	public void setCallback(HessianCallback callback) {
		this.callback = callback;
	}
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	public String getReadInfoDigest() {
		return readInfoDigest;
	}
	public void setReadInfoDigest(String readInfoDigest) {
		this.readInfoDigest = readInfoDigest;
	}
	public CrawlDataForm getCrawlDataForm() {
		return crawlDataForm;
	}
	public void setCrawlDataForm(CrawlDataForm crawlDataForm) {
		this.crawlDataForm = crawlDataForm;
	}
	
}
